package com.probiz.estore.theme;

import com.probiz.estore.common.helper.ConfigUtil;
import com.probiz.estore.core.util.ContextUtil;

public class TemplateUtil {
	public static String getTemplatePath() {
		if(ContextUtil.isStoreFront()){
			return "/themes/" + ConfigUtil.getInstance().getStoreFrontTheme();
		};
		if(ContextUtil.isMobileFront()){
			return "/themes/" + ConfigUtil.getInstance().getMobileFrontTheme();
		}
		return null;
	}

	public static String getTemplatePrefix() {
		return getTemplatePath() + "/pages/";
	}

	public static String getDecoratorsFileName() {
		return getTemplatePath() + "/decorators/decorators.xml";
	}
}
